<%@ page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>转换主人管理</title> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <script src="${pageContext.request.contextPath}/static/js/KeysManager/index.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/KeysManager/SwitchMaster.css?v=3">
    <link href="${pageContext.request.contextPath}/static/plugins/layer_mobile/need/layer.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/yahlj-app.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/layer_mobile/layer.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/jquery.qrcode.min.js" type="text/javascript"></script>
    
</head>
<body>


<div class="box">
    <div id='qr_code' style="padding-top: 60px;;background-color: #ffffff;">
    	
    </div>
    <img src="${pageContext.request.contextPath}/static/images/KeysManager/bg.png" class="box_bg">
    <div class="footer">
        <p class="label">请新主人扫一扫</p>
    </div>
</div>


</body>
</html>
<script>

;(function(window, undefined){
	
	
	var str = "${url}";
	var weight = $("#qr_code").width();
	$('#qr_code').qrcode({
		width: weight,
		height:weight,
		text: str
	});
	
})(window);

function showMsg(content){
	layer.open({
	    content:content,
	    time:2
	});
}

</script>